package com.iafme.dto.res;

import cn.zhxu.bs.bean.DbField;
import cn.zhxu.bs.bean.DbIgnore;
import cn.zhxu.bs.bean.SearchBean;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.systemframework.annotation.DataMask;
import com.systemframework.enums.DataMaskEnum;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
 * @author summer
 * @version 1.0
 * @date 2025/1/6 21:59
 */
@Data
@SearchBean(tables = " iafme_member m",orderBy = "m.createTime DESC")
public class MemberResDTO implements Serializable {

    @DbField("m.id")
    private Integer id;

    @DbField("m.name")
    private String name;

    @DbField("m.email")
    private String email;

    @DbField("m.phone")
    private String phone;

    @DbField("m.igAasId")
    private String igAasId;

    @DbField("m.surname")
    private String surname;

    @DbField("m.egName")
    private String egName;

    @DbField("m.postal")
    private String postal;

    @DbField("m.idCard")
    private String idCard;

    @DbField("m.birthday")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birthday;

    @DbField("m.province")
    private String province;

    @DbField("m.city")
    private String city;

    @DbField("m.address")
    private String address;

    @DbField("m.enAddress")
    private String enAddress;

    @DbField("m.createTime")
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss",
            timezone = "GMT+8"
    )
    private Date createTime;

    @DbIgnore
    private List<EducationResDTO> educationList;
    @DbIgnore
    private List<WorkResDTO> workList;

}
